const Sequelize = require('sequelize');
module.exports = function(sequelize, DataTypes) {
  return sequelize.define('zjb_unitzizhiinfo', {
    BelongXiaQuCode: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    OperateUserName: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    OperateDate: {
      type: DataTypes.DATE,
      allowNull: true
    },
    Row_ID: {
      type: DataTypes.INTEGER,
      allowNull: true
    },
    YearFlag: {
      type: DataTypes.STRING(4),
      allowNull: true
    },
    RowGuid: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    CertID: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    CorpCode: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    TitleLevelNum: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    CTOIDCardTypeNum: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    CTOIDCard: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    CEOIDCardTypeNum: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    CEOIDCard: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    CFOIDCardTypeNum: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    CFOIDCard: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    CertTypeNum: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    CTOSpecialtyTypNum: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    OrganName: {
      type: DataTypes.STRING(200),
      allowNull: true
    },
    OrganDate: {
      type: DataTypes.DATE,
      allowNull: true
    },
    EndDate: {
      type: DataTypes.DATE,
      allowNull: true
    },
    IsValid: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    Description: {
      type: DataTypes.STRING(1000),
      allowNull: true
    }
  }, {
    sequelize,
    tableName: 'zjb_unitzizhiinfo',
    timestamps: false
  });
};
